import http from './http';

export const getAdministrator = (params) => http.get('/administrator', { params });

export const delAdministrator = (id) => http.delete(`/administrator/${id}`);

export const getRole = () => http.get('/administrator/create');

export const addAdministrator = (params) => http.post('/administrator', params);

export const getAdministratorInfo = (id) => http.get(`/administrator/${id}`);

export const editAdministratorInfo = (id, params) => http.put(`/administrator/${id}`, params);
